package com.lh.springcloud.alibaba.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    //用来返回统一格式问题
    private Integer code;
    private String message;
    private List<T> data;

    public CommonResult(Integer code, String message){
        this.code = code;
        this.message = message;
    }


}
